package com.spring.boot.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/10/19 22:23
 * @Description
 */
@Controller
@RequestMapping("/api")
public class TestController {

    @GetMapping("/index")
    public String index() {
        // SpringBoot 会去 templates 目录下面，找到叫做 index 的文件
        return "index";
    }

}
